package com.xingu.xg.po;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.*;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Tree {
    @TableId(type = IdType.AUTO)
    int id;
    int tier;
    int sequence;
    int father;
    int childrenCount;
    String info;

    @Override
    public String toString() {
        return "Tree{" +
                "id=" + id +
                ", tier=" + tier +
                ", sequence=" + sequence +
                ", father=" + father +
                ", childrenCount=" + childrenCount +
                ", info='" + info + '\'' +
                '}';
    }
}
